package com.mass.waybill.voucher.service;

import com.mass.core.utils.AjaxResponse;
import com.mass.waybill.voucher.model.WbVoucher;

import java.util.List;

/**
 * @Author: ZSX
 * @Description: 收款单 service 接口
 */
public interface WbVoucherService {
    /**
     * 根据订单编号查询订单明细
     *
     * @param orderCode
     * @return
     */
    List<WbVoucher> findByOrderCode(String orderCode);

    /**
     * 增加
     *
     * @param wbVoucher
     */
    int insert(WbVoucher wbVoucher);

    /**
     * 通过id删除
     *
     * @param wbVoucherId
     */
    int delete(Long wbVoucherId);

    int deleteByIds(List<Long> ids);

    /**
     * 修改
     *
     * @param wbVoucher
     */
    int update(WbVoucher wbVoucher);

    /**
     * 通过id查找
     *
     * @param wbVoucherId
     * @return
     */
    WbVoucher selectById(Long wbVoucherId);

    /**
     * 通过输入参数分页查找
     *
     * @param wbVoucherInput
     * @return
     */
    AjaxResponse selectPage(WbVoucher wbVoucher, Integer page, Integer limit);

}
